
namespace Sedna.Core.Controller
{
    public class LoadPageControllerCommand : IControllerCommand
    {
        private int pageNumber;
        
        public int PageNumber
        {
            get { return pageNumber;}
            set { pageNumber = value;}
        }
        
        public void execute(IDataGridController controller)
        {
            controller.LoadPage(PageNumber);
            controller.Refresh();
        }
    }
}
